<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Db;

/**
 * 单页接口
 */
class Page extends Api
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];


    public function page(){
       $name = $this->request->request('name');

       $data = \app\common\model\Page::getPagesByCategoryName($name);
       return $data;
    }
}